﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PublicType
{
    public class TextItem
    {
        public String Id { get; set; }
        public Guid Guid { get; set; }
        public int NumId { get; set; }
        public String Text { get; set; }
        public String Name { get; set; }
        public String ParentId { get; set; }
        public Guid ParentGuid { get; set; }
        public int ParentNumId { get; set; }
        public Object Tag { get; set; }
        public override string ToString()
        {
            if (String.IsNullOrEmpty(Text))
            {
                return Name;
            }
            else
            {
                return Text;
            }
        }
    }
}
